var verify_dc_only_retail_or_tax = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"T1", "MSG":"","DATA":"","SCRIPTNAME":"verify_dc_only_retail_or_tax"}');

if (store_type == 2 && isNull(vnpk_qty) && isNull(item_status) && isNull(cost)
    && (!isNull(retail_tax) || !isNull(tax_rate))) {
    verify_dc_only_retail_or_tax.CODE = 2;
    verify_dc_only_retail_or_tax.ACTION = 'risk';
    verify_dc_only_retail_or_tax.MSG = '仓店不能改零售';
}

JSON.stringify(verify_dc_only_retail_or_tax);